package day04;

import javax.sound.midi.MidiUnavailableException;

public class WhileDemo {
    public static void main(String[] args) {
        //输出99乘法表
       int num =1;
       while (num<=9){
           System.out.println(num+"*9="+num*9);
           num+=2;//num++;
       }
       //输出5次“今天是个好日子”
        int times =0;
       while (times<5){
           System.out.println("今天是个好日子"+times);
           times++;
           /* true  输出  times=1
           *  true  输出  times=2
           *  true  输出  times=3
           *  true  输出  times=4
           *  true  输出  times=5
           *  false while循环结束
           * */
       }

    }
}
